package com.lntea.crawler.website.service;

import java.util.List;
import java.util.Map;

import com.lntea.crawler.entity.Picture;
import com.lntea.crawler.entity.Website;
import com.lntea.crawler.website.dao.WebsiteDao;

public class WebsiteServiceImpl implements WebsiteService{
	
	private WebsiteDao websiteDao;

	@Override
	public List<Website> queryAllWebsite() {
		return websiteDao.readAll();
	}
	
	public Map<String, List<Picture>> queryPictureByWebsiteIds(List<Long> ids){
		return websiteDao.readPictureByWebsiteIds(ids);
	}

	public WebsiteDao getWebsiteDao() {
		return websiteDao;
	}

	public void setWebsiteDao(WebsiteDao websiteDao) {
		this.websiteDao = websiteDao;
	}

}
